package com.shangxian.giveithome.entity.petCard;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author coderFu
 * @create 2021/5/2
 */
@Data
@ApiModel("扫描记录表")
public class ScanRecord {

    @ApiModelProperty("自增id")
    private Long id;

    @ApiModelProperty("年份")
    private int scanYear;

    @ApiModelProperty("月日")
    private String scanMonth;

    @ApiModelProperty("小时")
    private String scanHour;

    @ApiModelProperty("扫描时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date scanTime;

    @ApiModelProperty("扫描用户")
    private Long scanUser;

    @ApiModelProperty("所在省份")
    private String scanProvince;

    @ApiModelProperty("城市")
    private String scanCity;

    @ApiModelProperty("地区")
    private String scanCounty;

    @ApiModelProperty("详细地址")
    private String scanAddress;

    @ApiModelProperty("宠牌编号表id")
    private Long petCardCodeId;

    @ApiModelProperty("经度")
    private String longitude;

    @ApiModelProperty("纬度")
    private String latitude;
}
